<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl" %>
<div class="userInfo">
    <p>Please enter your username and password. <%= Html.ActionLink("Register", "Register") %> if you don't have an account.</p>
    <%= Html.ValidationSummary("Login was unsuccessful. Please correct the errors and try again.") %>

    <% using (Html.BeginForm()) { %>
        <div>
            <fieldset>
                <legend>Account Information</legend>
                <p>
                    <label for="username">Username</label>
                    <%= Html.TextBox("username") %>
                    <%= Html.ValidationMessage("username") %>
                </p>
                <p>
                    <label for="password">Password</label>
                    <%= Html.Password("password") %>
                    <%= Html.ValidationMessage("password") %>
                </p>
                <p>.. OR ..</p>
                <p>
                    <label for="password">Open ID</label>
                    <%= Html.TextBox("openidIdentifier")%>
                    <%= Html.ValidationMessage("openidIdentifier")%>
                </p>
                <p>
                    <%= Html.CheckBox("rememberMe") %> <label class="inline" for="rememberMe">Remember me?</label>
                </p>
                <p>
                    <input type="submit" value="Login" /> &nbsp; <%= Html.ActionLink("Register", "Register", "Account") %>
                </p>
            </fieldset>
        </div>
    <% } %>
</div>